package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserLotteryHistory struct {
	Id             int
	Uid            int       //用户id
	LotteryId      int       //抽奖活动id
	LotteryAwardId int       //奖品id
	AwardType      int       //0-虚拟 1-实物
	LottNum        int       //领取数量
	DrawTime       time.Time //抽奖时间
	GiveTime       time.Time //发放时间
	GiveStatus     int       //0-待发放/待发放 1-已发放/已发货
	ExpressNO      string    //运单号码
}

const (
	LOTTERY_AWARD_GIVE_PENDING = iota
	LOTTERY_AWARD_GIVE_COMPLETE
)

func (UserLotteryHistory) TableName() string {
	return fmt.Sprintf("%suser_lottery_history", models.Prefix)
}
